|
![](/i/fill.gif) |
James Cannon <jam### [at] hotmail com> wrote:
: Hi! I'm trying to spruce up my web page with some POV-Ray 3D art. I have
: created an object, but would like to repeat the object in a double-helix
: pattern. It's stupid, a union of text "0101" objects, I can only manage to
: string them in a straight line!! (Imagine that!) It looks like a lame binary
: ladder right now. How can I get it to twist?
For example this way:
#declare ObjectsAmnt=100;
#declare MaxAngle=360;
#declare MaxHeight=20;
#declare Radius=5;
#declare ind=0;
#while(ind<ObjectsAmnt)
#declare fact=ind/(ObjectsAmnt-1);
#declare Angle=MaxAngle*fact;
#declare Height=MaxHeight*fact;
object { MyObject translate -z*Radius+y*Height rotate y*Angle }
#declare ind=ind+1;
#end
--
main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
):5;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*- Warp -*/
Post a reply to this message
|
![](/i/fill.gif) |